#ifndef LRUNSQL
#define LRUNSQL

class CDrawDlg;
void DateToInt(CString date,int& year,int& month,int& day);
bool OpenPrintFrame(CWnd* parent,CDrawDlg * m_draw);	

#define XS		0
#define XSTH	1
#define RK		2
#define RKTH	3

class LRunSql
{
public:
	LRunSql();
	~LRunSql();
	bool RunSQL(CString sql);
	bool CheckSQLResult(CString sql);
public:
	static _ConnectionPtr m_database;

	static bool RollbackTrans();
	static bool CommitTrans();
	static bool BeginTrans();
	static bool Close();
	static bool InitConnectPtr();
	static bool ConnectDataBase();

	_RecordsetPtr m_recordset;
};

// _ConnectionPtr m_database;
#endif